<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>JVM: src/classfile.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Gerado por Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Página&nbsp;principal</span></a></li>
      <li class="current"><a href="files.html"><span>Ficheiros</span></a></li>
    </ul>
  </div>
<h1>src/classfile.h</h1><a href="classfile_8h.html">Ir para a documentação deste ficheiro.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00006"></a>00006 <span class="preprocessor">#ifndef _CHASSFILE_H_</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define _CHASSFILE_H_</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span>
<a name="l00009"></a>00009 <span class="preprocessor">#include "<a class="code" href="common_8h.html" title="Contém as definições comuns a todos os módulos.">common.h</a>"</span>
<a name="l00010"></a>00010 
<a name="l00012"></a><a class="code" href="classfile_8h.html#324523ffaae4bda020354153ae8f195e">00012</a> <span class="preprocessor">#define SWAP_2(x) ( (((x) &amp; 0xff) &lt;&lt; 8) | ((unsigned short)(x) &gt;&gt; 8) )</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00015"></a><a class="code" href="classfile_8h.html#9b1f0991c3a3f2785bf2f7d0ca05d955">00015</a> <span class="preprocessor">#define SWAP_4(x) ( ((x) &lt;&lt; 24) | \</span>
<a name="l00016"></a>00016 <span class="preprocessor">         (((x) &lt;&lt; 8) &amp; 0x00ff0000) | \</span>
<a name="l00017"></a>00017 <span class="preprocessor">         (((x) &gt;&gt; 8) &amp; 0x0000ff00) | \</span>
<a name="l00018"></a>00018 <span class="preprocessor">         ((x) &gt;&gt; 24) )</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00021"></a><a class="code" href="classfile_8h.html#610ef0c32d3ab57f2e68a8adb274a1ad">00021</a> <span class="preprocessor">#define FIX_2(x) (*(unsigned short *)&amp;(x) = SWAP_2(*(unsigned short *)&amp;(x)))</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00024"></a><a class="code" href="classfile_8h.html#2fe05b3a338cd7d0497ab99d19a21405">00024</a> <span class="preprocessor">#define FIX_4(x)   (*(unsigned int *)&amp;(x)   = SWAP_4(*(unsigned int *)&amp;(x)))</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#define CP_INFO(i) constant_pool[(i)].info</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a><a class="code" href="classfile_8h.html#cee1c5a539f26dc46489882af26eb6d5">00029</a> <span class="preprocessor">#define CP_INFO(i) constant_pool[(i)].info</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="keywordtype">void</span> <a class="code" href="classfile_8h.html#e2905f7838f9545714c0135417642730" title="Carrega a classe.">loadClass</a>(<span class="keywordtype">char</span> *class_name);
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 class_file *get_class(class_list *l, <span class="keywordtype">char</span> *class_name);
<a name="l00039"></a>00039 
<a name="l00045"></a>00045 <span class="keywordtype">void</span> <a class="code" href="classfile_8h.html#b02d2ff95ffa15a5beb3f27341e1bd3c" title="Imprime a classe.">printclass</a>(class_file *in);
<a name="l00046"></a>00046 
<a name="l00053"></a>00053 method_info *<a class="code" href="classfile_8h.html#3c358c44a574868a7c3fbce9452c16a2" title="Procura um método.">get_method</a>(<span class="keywordtype">char</span> *method_name);
<a name="l00054"></a>00054 
<a name="l00061"></a>00061 <a class="code" href="common_8h.html#e5be1f726785414dd1b77d60df074c9d" title="32 bytes sem sinal">u4</a> <a class="code" href="classfile_8h.html#82dcfcb11bdaa1f4a0f91d4d051267c7" title="Informa o índice do método no constant pool.">get_method_index</a>(<span class="keywordtype">char</span> *method_name);
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Gerado em Wed Jul 1 15:56:08 2009 para JVM por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
